package com.hzjh.h5mall.adapter.wallet

import com.hzjh.base.frame.adapter.BaseBindingVH
import com.hzjh.h5mall.bean.wallet.RechargeMoneyItem
import com.hzjh.h5mall.databinding.ItemRechargeMoneyBinding

class RechargeMoneyVH(binding: ItemRechargeMoneyBinding,private val clickMoneyItem: ((RechargeMoneyItem) -> Unit)?=null) : BaseBindingVH<RechargeMoneyItem, ItemRechargeMoneyBinding>(binding){
    override fun onBind(model: RechargeMoneyItem, position: Int) {
        binding.tvTitleItem.text=model.title
        itemView.setOnClickListener {
            clickMoneyItem?.invoke(model)
        }
    }
}